<%inherit file="/en/base.html" />

<h3>Way point types</h3>

<%def name="context_menu()">
<ul>
%if ctx.is_admin:
<li><a href="/wptypes/new">Add</a> new waypoint type</li>
%endif
</ul>
</%def>

<%def name="style()">
#pdesc{ padding:2px 10px }
</%def>

<table width=400px>


% for wpt in ctx.wptypes:

    <tr>
        <td><b>${wpt.name}</b></td>
        <td> 
            %if ctx.is_admin:
            <a href="#">delete</a>&nbsp;
            <a href="/wptypes/edit?wptype=${wpt.key()}">edit</a>
            %endif
        </td>
    </tr>
    <tr>
    <td colspan=2 id=pdesc>
       ${wpt.desc|ctx.h.defnone}
    </td>
% endfor

</table>
